package com.broadsword.listeners;

import com.broadsword.entities.MyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class MyEventListener implements ApplicationListener<MyEvent> {
    @Override
    public void onApplicationEvent(MyEvent event) {

        System.out.println("Received MyEvent-"+event.getMessage());
    }
}
